function mmm = minmaxmean(v, flags)
% minmaxmean  - get min, max, and mean of data array (fast)
%
% FORMAT:       mmm = minmaxmean(v [, flags]);
%
% Input fields:
%
%       v             N-d data array
%       flags         sum of optional flags (default 0):
%                     1 - also compute unbiased variance
%                     4 - "safe" mode (skip Inf/NaNs in v, only for floats)
%
% Output fields:
%
%       mmm           [min, max, mean, minpos, maxpos, var]
%
% Note: This is a MEX compiled function !
%       and output is computed over all elements -- as if used with v(:) !

% Version:  v0.7f
% Build:    8110521
% Date:     Nov-05 2008, 9:00 PM CET
% Author:   Jochen Weber, SCAN Unit, Columbia University, NYC, NY, USA
% URL/Info: http://wiki.brainvoyager.com/BVQXtools

% just bail out
error( ...
    'BVQXtools:MEXMissing', ...
    'This is a compiled function, but the MEX file is missing.' ...
);
